package com.training.entity;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the empl_address database table.
 * 
 */
@Entity
@Table(name="empl_address")
public class EmplAddress implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="emp_address_id")
	private String empAddressId;

	@Column(name="apartment_number")
	private String apartmentNumber;

	private String city;

	private String country;

	@Column(name="phone_number")
	private String phoneNumber;

	private String state;

	private String steet;

	private String zipcode;

	//bi-directional many-to-one association to EmpInformation
	@ManyToOne
	@JoinColumn(name="emp_id")
	private EmpInformation empInformation;

	public EmplAddress() {
	}

	public String getEmpAddressId() {
		return this.empAddressId;
	}

	public void setEmpAddressId(String empAddressId) {
		this.empAddressId = empAddressId;
	}

	public String getApartmentNumber() {
		return this.apartmentNumber;
	}

	public void setApartmentNumber(String apartmentNumber) {
		this.apartmentNumber = apartmentNumber;
	}

	public String getCity() {
		return this.city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getCountry() {
		return this.country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public String getPhoneNumber() {
		return this.phoneNumber;
	}

	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}

	public String getState() {
		return this.state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getSteet() {
		return this.steet;
	}

	public void setSteet(String steet) {
		this.steet = steet;
	}

	public String getZipcode() {
		return this.zipcode;
	}

	public void setZipcode(String zipcode) {
		this.zipcode = zipcode;
	}

	public EmpInformation getEmpInformation() {
		return this.empInformation;
	}

	public void setEmpInformation(EmpInformation empInformation) {
		this.empInformation = empInformation;
	}

}